Skip to main content

mouseChar

Type

function

Summary

Returns the character the mouse pointer is over.

Syntax

the mouseChar
mouseChar()

Description

Use the mouseChar function within a handler to determine which character the mouse is hovering over, in order to take some action based on the current character.

The mouseChar function only returns characters in a field. If the mouse pointer is not over a field, the mouseChar function returns empty.

To find the position of the mouseChar within the field, use the mouseCharChunk function.

Examples

the mouseChar
if the mouseChar is a number then goToFootnote

control structure: function

function: mouseLine, clickChar, mouseCharChunk

glossary: handler, mouse pointer, return

keyword: characters, character, field

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?